package com.panshi.api;

import com.panshi.vo.search.ArticleVo;
import com.panshi.vo.search.Paging;
import com.panshi.vo.search.SearchVo;
import com.panshi.vo.search.TypeVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Component
@FeignClient(value = "search-server")
public interface IAboutApi {
    @GetMapping("/about/link")
    List<TypeVo> link();

    @GetMapping("/about/me")
    List<TypeVo> me();

    @GetMapping("/about/map")
    List<TypeVo> map();

    @GetMapping("/about/leave")
    List<TypeVo> leave();

    @GetMapping("/about/zhaoping")
    List<TypeVo> zhaoping();

    @GetMapping("/about/agree")
    List<TypeVo> agree();

    @GetMapping("/about/privacy")
    List<TypeVo> privacy();

    @RequestMapping("/search")
    Paging<List<SearchVo>> search(@RequestBody Paging<String> pa);

    @GetMapping("/findSou")
    List<ArticleVo> findSou();
}
